package main

import (
	"sbd_zzdj/handler"
	"sbd_zzdj/inits"
	"sbd_zzdj/reposit"
	"sbd_zzdj/service"
)

var (
	CompanyHandler handler.CompanyHandler

	// HostHandler ws.HostHandler
)

func init() {
	if err := inits.Init(""); err != nil {
		panic(err)
	}
	DB := inits.NewDatabase

	CompanyHandler = handler.CompanyHandler{
		CompanySrv: service.CompanyService{
			Repo: reposit.CompanyReposit{
				Db: DB(),
			},
		},
	}
}
